 
import axios from '@/utils/request'
import home from './config/home'


// export const getHomeData = () => axios.get(home.getHomeData) //无参使用方式
// export const getHomeData = options:any => axios.get(home.getHomeData, options) //有参使用方式 options参数可以自行统一定义

export const shop_search = ()=>axios.get(home.shopList)

export const shopcart = (userid:any)=>axios.get(home.shopcart,userid)

export const login = (options:any) =>axios.get(home.login,options)

export const subtract_shopnum = (options:any) =>axios.post(home.subtract_shopnum,options)

export const update_cart_checked = (options:any) =>axios.post(home.update_cart_checked,options)
export const addshopcar=(options:any)=>axios.post(home.addcart,options)

